// OrderAddressRepository.java
package com.example.demotest.repository;

import com.example.demotest.pojo.OrderAddress;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.Optional;

@Repository
public interface OrderAddressRepository extends JpaRepository<OrderAddress, Integer> {
    Optional<OrderAddress> findByOrderId(Integer orderId);
}